#!/bin/sh

set -e
set -u

EXT="/usr/lib/icedove/extensions"

[ -d "$EXT" ] || exit 1

echo "Enabling Torbirdy and Enigmail in Icedove"
ln -s /usr/share/xul-ext/torbirdy "$EXT"/castironthunderbirdclub@torproject.org
ln -s /usr/lib/xul-ext/enigmail "$EXT"/\{847b3a00-7ab1-11d4-8f02-006008948af5\}
